package org.pine.mybatis.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.pine.model.Book;

import java.util.List;

/**
 * @ClassName BookMapper
 * @Description:TODO
 * @Author liucs
 * @Date 2021-01-28
 * @Version V1.0
 */
@Mapper
public interface BookMapper {
    int addBook(Book book);
    int deleteBookById(Integer id);
    int updateBookById(Book book);
    Book getBookById(Integer id);
    List<Book> getAllBooks();
}
